package com.suxin.rule.abstrct;

import com.suxin.rule.RuleConstant;
import com.suxin.rule.dto.RuleDTO;

/**
 * @author Tang
 * @classname AddressRule
 * @description [ 规则1 ]
 * @date 2022/1/9 19:10
 */
public class AddressRule extends AbstractRule {
    @Override
    public boolean execute(RuleDTO ruleDTO) {
        return ruleDTO.getAddress().startsWith(RuleConstant.MATCH_ADDRESS_START);
    }
}